The argument values areint pfxmmap(dev_t dev, off_t off, int prot);
dev | A dev_t value from which you can extract both the major and minor device numbers. |
off | The offset argument passed to mmap() by the user process. |
prot | Flags showing the access intentions of the user process. |
The function is expected to return the page frame number (PFN) that corresponds to the offset off in the device address space. A PFN is an address divided by the page size. (See "Working With Page and Sector Units" for page unit conversion functions.)
This entry point is supported only for compatibility with SVR4. When the kernel needs to map a character device, it looks first for pfxmap(). It calls pfxmmap() only when pfxmap() is not available. The differences between the two entry points are as follows: